package com.zzyl.nursing.job;

import com.zzyl.nursing.service.IContractService;
import com.zzyl.nursing.service.IDeviceDataService;
import com.zzyl.nursing.service.IDeviceService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.time.LocalDateTime;
import java.util.List;

@Slf4j
@Component("contractTask")
public class ContractTask {

    @Autowired
    private IContractService contractService;


    /**
     * 合同状态更新定时任务执行方法
     * 该方法会被定时任务调度器调用，执行合同状态的批量更新操作
     */
    public void time(){
        log.info("开始执行合同状态更新任务");
        contractService.updateContractStatus();
        log.info("定时更新合同状态成功");
    }






}
